package com.situ.day93;

public class StringDemo {

    public static void main(String[] args) {
        String str = "666" + new String("666");

        StringBuilder builder = new StringBuilder("abc");
        String str2 = builder.toString();

        // String s = "58" + "tongcheng";
        String str1 = new StringBuilder("58").append("tongcheng").toString();
        System.out.println(str1);//58tongcheng
        System.out.println(str1.intern());//58tongcheng
        System.out.println((str1 == str1.intern()));//true
        System.out.println();

    }

}
